﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DatabaseHelper
{
    /// <summary>
    /// PRecord class present a row with main fields in Records table
    /// </summary>
    public class PRecord
    {
        #region PROPERTIES
        /// <summary>
        /// Time start record
        /// </summary>
        public DateTime TimeStart { get; set; }
        /// <summary>
        /// Time end record
        /// </summary>
        public DateTime TimeEnd { get; set; }
        /// <summary>
        /// KP start record
        /// </summary>
        public string KPStart { get; set; }
        /// <summary>
        /// KP end record
        /// </summary>
        public string KPEnd { get; set; }
        /// <summary>
        /// File path of video 1 from port camera
        /// </summary>
        public string Video1 { get; set; }
        /// <summary>
        /// File path of video 2 from center camera
        /// </summary>
        public string Video2 { get; set; }
        /// <summary>
        /// File path of video 3 from stbd camera
        /// </summary>
        public string Video3 { get; set; }
        /// <summary>
        /// File path of video 4 from aux camera
        /// </summary>
        public string Video4 { get; set; }
        #endregion

        #region CONSTRUCTORS
        /// <summary>
        /// Default constructor
        /// </summary>
        public PRecord()
        {
            TimeStart = new DateTime(0001, 1, 1, 12, 0, 0);
            TimeEnd = new DateTime(0001, 1, 1, 12, 0, 0);
            KPStart = "";
            KPEnd = "";
            Video1 = "";
            Video2 = "";
            Video3 = "";
            Video4 = "";
        }

        /// <summary>
        /// Constructor with all properties
        /// </summary>
        /// <param name="ts">TimeStart</param>
        /// <param name="te">TimeEnd</param>
        /// <param name="kps">KPStart</param>
        /// <param name="kpe">KPEnd</param>
        /// <param name="v1">Video1</param>
        /// <param name="v2">Video2</param>
        /// <param name="v3">Video3</param>
        /// <param name="v4">Video4</param>
        public PRecord(DateTime ts, DateTime te, string kps, string kpe, string v1, string v2, string v3, string v4)
        {
            TimeStart = ts;
            TimeEnd = te;
            KPStart = kps;
            KPEnd = kpe;
            Video1 = v1;
            Video2 = v2;
            Video3 = v3;
            Video4 = v4;
        }
        #endregion
    }
}
